<?php


$con = mysql_connect("localhost","cubeMass_f","cubeSelectNow");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  
mysql_select_db("cubeMass",$con);
session_start();

if($_SESSION[user_id] == 10000 || $_SESSION[user_id] == 10001 || $_SESSION[user_id] == 10002){

	$id = "10292";
	
	$file = 'cube/'.$id.'.html';
	unlink($file);
	
	$file = 'photo/'.$id.'.png';
	unlink($file);
	
	$file = 'photo/'.$id.'_small.png';
	unlink($file);

	mysql_query("DELETE FROM model WHERE ID='$id'");
	
	echo("down");

}

?>